<div class="post">
    <?php if (isset($errors)) {
        ?>
        <div class="error">
            Sorry, error occurred. <?= $errors; ?>
        </div>
    <?php } else {
        ?>
        <div class="entry">
            <form>
                <table style="border:5px;border-style:solid;">
                    <tr class="lighter">
                        <th>
                            Subject
                        </th>
                        <td>
                            <input type="text" class="wide" name="subject" value="<?= $subject; ?>"/>
                        </td>
                    </tr>
                    <tr class="darker">
                        <th>
                            Sent to
                        </th>
                        <td>
                            <input type="text" class="wide" name="sent_to" value="<?= $sent_to; ?>"/>
                        </td>
                    </tr>
                    <tr class="lighter">
                        <th>
                            Date sent
                        </th>
                        <td>
                            <input type="text" class="wide" name="date_sent" value="<?= $date_sent; ?>"/>
                        </td>
                    </tr>
                    <tr class="darker">
                        <th>
                            File path
                        </th>
                        <td>
                            <input type="file" class="wide"  name="userfile" /> <?= $file_path; ?>                         
                        </td>
<!--                        <td>
                            Current file
                        </td>-->
                    </tr>
                </table>
            </form>
        </div>
    <?php } ?>

    <input type="button" onclick="hide('#<?= $div; ?>')" value="Close" />
</div>